package com.ervanalb.cellradio.shared.communicator;

import com.ervanalb.cellradio.shared.communicator.packets.Packet;
import com.ervanalb.cellradio.shared.communicator.packets.PacketData;

/**
 * A ReplyListener which ignores ACK packets, only meaningful responses to
 * queries.
 * 
 * @author eric
 * @see ReplyListener
 */
public class ResponseListener extends ReplyListener {

	public ResponseListener(Communicator comm, int message) {
		super(comm, message);
	}

	public boolean filter(Packet p) {
		return p.pd.type != PacketData.TYPE_ACK;
	}
}
